package com.youle.exception;

import com.youle.enums.ExceptionEnum;
import lombok.Getter;

/**
 * Created by
 *  发生异常时返回的结果封装  包含错误码  信息  时间戳
 * @author touni
 * @date 2019/4/18
 * @time 12:41
 */
@Getter
public class ExceptionResponse {

    private int code;
    private String msg;
    private Long timestatus;


    public ExceptionResponse(ExceptionEnum en){

        this.code = en.getCode();
        this.msg = en.getMsg();
        this.timestatus = System.currentTimeMillis();


    }





}
